package com.qf.common.constant;

import org.springframework.context.annotation.Configuration;

/**
 * @author : sin
 * @date : 2024/6/11 12:56
 * @Description : 定义放行url常量
 */
@Configuration
public class URLConstant {
    /**
     * 登录url
     */
    public static final String LOGIN_URL = "/auth/login";
    /**
     * 验证码url
     */
    public static final String CAPTCHA_URL = "/auth/captcha";
    /**
     * 退出登录url
     */
    public static final String LOGOUT_URL = "/auth/logout";

    /**
     * 获取路由url
     */
    public static final String ROUTER_URL = "/router/getRouter";
    /**
     * 重置密码
     */
    public static final String RESET_PASSWORD_URL = "/user/resetPassword";
    /**
     * 下拉角色
     */
    public static final String GET_ROLE_LIST_URL = "/role/getAllRoleList";
    /**
     * 获取角色菜单
     */
    public static final String GET_ROLE_MENU_URL = "/role/getRoleMenu";
    /**
     * 修改角色菜单
     */
    public static final String UPDATE_ROLE_MENU_URL = "/role/updateRoleMenu";
    /**
     * 获取当前登录用户信息
     */
    public static final String GET_CURRENT_USER_URL = "/user/getCurrentUser";

    /**
     * 登录放行，不用鉴权
     */
    public static final String[] LOGIN_URLS = {
            ROUTER_URL,
            RESET_PASSWORD_URL,
            GET_ROLE_LIST_URL,
            GET_ROLE_MENU_URL,
            UPDATE_ROLE_MENU_URL,
            GET_CURRENT_USER_URL
    };
}